from random import choice

# 创建列表，包含10个数字，5个字母
ticket = [1,2,3,4,5,6,7,8,9,10,'J','Q','K','A','B']

prizes = []

while len(prizes) < 4:
    prize = choice(ticket)
    if prize in prizes:
        continue
    else:
        prizes.append(prize)

print(f"中奖号码为：{prizes}")